package com.zhuangxiaoyan.helloworld.controller;

import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Classname AopController
 * @Description TODO
 * @Date 2022/5/1 17:54
 * @Created by xjl
 */
@RestController
@RequestMapping("/aopTest")
public class AopController {


    @RequestMapping(value = "/sayHi/{name}", method = RequestMethod.GET)
    public String sayHi(@PathVariable(value = "name") String name) {
        return "hi, " + name;
    }
}
